package com.bp.hearthealth.pulse.lnapps.bp_db.bp_user

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_project.BpStringTypeConverter
import com.bp.hearthealth.pulse.lnapps.bp_db.bp_project.BpTypeConverter

@Entity(tableName = "user")
@TypeConverters(BpTypeConverter::class, BpStringTypeConverter::class)
data class BpUser(
    @PrimaryKey(autoGenerate = false)
    @ColumnInfo(name = "id") val id: String = "",
    @ColumnInfo(name = "name") val name: String = "",
    @ColumnInfo(name = "birthday") val birthday: String = "",
    @ColumnInfo(name = "gender") val gender: Int = 0,
    @ColumnInfo(name = "heartRate") val heartRate: Int = 0,
    @ColumnInfo(name = "heartRateLevel") val heartRateLevel: String = "",
    @ColumnInfo(name = "notification") val notification: Boolean = false,
    @ColumnInfo(name = "isFirstOpen") val isFirstOpen: Boolean = true,
    @ColumnInfo(name = "isFirstAuthorize") val isFirstAuthorize: Boolean = true,
    @ColumnInfo(name = "isFirstDetection") val isFirstDetection: Boolean = true,
    @ColumnInfo(name = "isLogin") val isLogin: Boolean = false,
    @ColumnInfo(name = "languageIndex") val languageIndex: Int = -1,
    @ColumnInfo(name = "languageList") val languageList: MutableList<String> = ArrayList(),
)
